for iii = 1:10
    tic
    [x(iii), y(iii), z(iii), buttons(:,iii)] = WinJoystickMex(0);
toc*1000
end
    